<ui:composition template="/template/template-professor.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets">

    <ui:define name="corpo">
        <h:form id="pa">
            <p:growl id="message" showDetail="true" life="5000"/>

            <div style="margin-left: 30%; width: 500px !important; padding-bottom: 5% !important;">
                <p:panel style="font-size: 12px !important;">
                    <p:panelGrid columns="2">
                        <h:outputText value="Nome do Fitólito"/>
                        <p:inputText value="#{cadastraFitoManagedBean.fitolito}" required="true"/>
                        <h:outputText value="Disponivel para busca?"/>
                        <p:selectBooleanCheckbox value="#{cadastraFitoManagedBean.disponivel}"/>
                    </p:panelGrid>
                    <p:separator />

                    <p:commandButton value="Concluir" action="#{cadastraFitoManagedBean.createFitop()}"/>
                    <p:commandButton style="margin-bottom: 35px !important; margin-top: 20px !important;" value="Cancelar" id="Submit" 
                                     action="../conteudo-professor/gerenciar-list-fitop.xhtml?faces-redirect=true"/>

                </p:panel>
            </div>
            
        </h:form>
    </ui:define>
</ui:composition>